# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Magnus Sandin <magnus.sandin@gmail.com>
pkgname=py3-pychromecast
pkgver=13.0.8
pkgrel=0
pkgdesc="Python module to talk to Google Chromecast"
url="https://github.com/home-assistant-libs/pychromecast"
arch="noarch"
license="MIT"
depends="
	py3-casttube
	py3-protobuf
	py3-zeroconf
	python3
	"
makedepends="py3-setuptools"
source="https://pypi.python.org/packages/source/P/PyChromecast/PyChromecast-$pkgver.tar.gz"
options="!check" # No tests
builddir="$srcdir/PyChromecast-$pkgver"

provides="py3-chromecast=$pkgver-r$pkgrel" # Backwards compatibility
replaces="py3-chromecast" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
565abbb46de4cdedbd3ddf24cafeaa6c000108f1ec6b9cee77cd9ac34efc910f7d1f524a05d5926a23793eeb296d012ef6aafe357158fea75f000702d5c1b974  PyChromecast-13.0.8.tar.gz
"
